// Home module
export default {
  namespaced: true, // Enable namespace for module
  state: {
    homeData: "This is home page data",
  },
  mutations: {
    updateHomeData(state, newData) {
      state.homeData = newData;
    },
  },
  actions: {
    fetchHomeData({ commit }) {
      // Simulate an API call
      const newData = "New home page data";
      commit("updateHomeData", newData);
    },
  },
  getters: {
    getHomeData: (state) => state.homeData,
  },
};
